package com.github.catvod.spider;

import android.text.TextUtils;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.Dv;
import com.github.catvod.spider.merge.HZ;
import com.github.catvod.spider.merge.Lm;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.lk;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Dygang extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f20short = {1238, 1233, 1189, 1194, 1234, 1232, 1238, 3237, 3281, 3294, 3238, 3236, 1733, 1690, 1670, 1675, 1683, 1733, 1730, 1718, 1721, 1729, 1731, 1733, 905, 991, 981, 905, 975, 968, 962, 963, 990, 1017, 910, 1018, 962, 909, 911, 904, 974, 978, 971, 2240, 2241, 2259, 2232, 2221, 2983, 2978, 3058, 3059, 3057, 3058, 448, 486, 496, 487, 440, 468, 498, 496, 507, 481, 2501, 2535, 2546, 2529, 2532, 2532, 2537, 2471, 2493, 2470, 2488, 2472, 2464, 2527, 2529, 2534, 2540, 2535, 2559, 2555, 2472, 2502, 2524, 2472, 2489, 2488, 2470, 2488, 2483, 2472, 2527, 2529, 2534, 2494, 2492, 2483, 2472, 2544, 2494, 2492, 2465, 2472, 2505, 2552, 2552, 2532, 2541, 2527, 2541, 2538, 2499, 2529, 2556, 2471, 2493, 2491, 2495, 2470, 2491, 2494, 2472, 2464, 2499, 2496, 2524, 2501, 2500, 2468, 2472, 2532, 2529, 2531, 2541, 2472, 2511, 2541, 2539, 2531, 2535, 2465, 2472, 2507, 2528, 2554, 2535, 2533, 2541, 2471, 2489, 2489, 2488, 2470, 2488, 2470, 2488, 2470, 2488, 2472, 2523, 2537, 2542, 2537, 2554, 2529, 2471, 2493, 2491, 2495, 2470, 2491, 2494, 2472, 2509, 2540, 2543, 2471, 2489, 2489, 2488, 2470, 2488, 2470, 2489, 2493, 2480, 2495, 2470, 2493, 2495, 430, 386, 387, 409, 392, 387, 409, 448, 441, 404, 413, 392, 2670, 2687, 2687, 2659, 2662, 2668, 2670, 2683, 2662, 2656, 2657, 2592, 2679, 2594, 2680, 2680, 2680, 2594, 2665, 2656, 2685, 2658, 2594, 2682, 2685, 2659, 2666, 2657, 2668, 2656, 2667, 2666, 2667, 1892, 1862, 1862, 1856, 1877, 1873, 1800, 1888, 1867, 1862, 1866, 1857, 1868, 1867, 1858, 2448, 2445, 2462, 2439, 3027, 3031, 3037, 1292, 1296, 1296, 1300, 1303, 1374, 1355, 1355, 1299, 1299, 1299, 1354, 1280, 1309, 1283, 1285, 1290, 1283, 1354, 1296, 1298, 1355, 3018, 2956, 2955, 2945, 2944, 2973, 3019, 2957, 2961, 2952, 538, 604, 603, 593, 592, 589, 618, 2057, 2127, 2131, 2122, 815, 831, 891, 826, 768, 819, 809, 830, 829, 881, 870, 892, 818, 821, 831, 830, 803, 772, 892, 774, 629, 623, 632, 635, 918, 24078, -26043, 28624, 25720, 24847, 20801, 25561, 25474, -29968, 30197, 32162, 25837, 22423, 1084, 1065, 1066, 1060, 1069, 1126, 1066, 1063, 1082, 1068, 1069, 1082, 1145, 1128, 1065, 2578, 2591, 2567, 2180, 2181, 2196, 29101, 23543, 2450, 2443, 2432, 2491, 2445, 2432, 2934, 2927, 2916, 2911, 2926, 2913, 2925, 2917, 2608, 2601, 2594, 2585, 2614, 2607, 2597, 1232, 1225, 1218, 1273, 1236, 1219, 1227, 1223, 1236, 1229, 1237, 1828, 1845, 1843, 1841, 1578, 1595, 1597, 1599, 1593, 1589, 1583, 1588, 1582, 1919, 1914, 1918, 1914, 1895, 2501, 2526, 2501, 2512, 2525, 563, 566, 556, 555, 2189, 2193, 2193, 2197, 2198, 2271, 2250, 2250, 2194, 2194, 2194, 2251, 2177, 2204, 2178, 2180, 2187, 2178, 2251, 2193, 2195, 2795, 2811, 2748, 2811, 2810, 2811, 2810, 2752, 2812, 2800, 2801, 2795, 2810, 2801, 2795, 2751, 2806, 2802, 2808, 1442, 1443, 1458, 3134, 3123, 3116, 3188, 3118, 3123, 3118, 3126, 3135, 3194, 3131, 1773, 1780, 1791, 1732, 1778, 1791, 3265, 3288, 3283, 3304, 3289, 3286, 3290, 3282, 2030, 2039, 2044, 1991, 2024, 2033, 2043, 2066, 2050, 2118, 2136, 2118, 2055, 2109, 2062, 2068, 2051, 2048, 2124, 2139, 2113, 2059, 2055, 2049, 2056, 2051, 2066, 2113, 2107, 2989, 3039, 703, 3293, 3271, 3280, 3283, 782, 1200, 1193, 1186, 1177, 1206, 1194, 1191, 1215, 1177, 1184, 1204, 1193, 1195, 28899, 23207, 27641, 947, 938, 929, 922, 949, 937, 932, 956, 922, 944, 951, 937, 1096, 1101, 1111, 1104, 2290, 2298, 2283, 2295, 2288, 2299, 536, 538, 523, 1721, 1695, 1673, 1694, 1729, 1709, 1675, 1673, 1666, 1688, 3282, 3312, 3301, 3318, 3315, 3315, 3326, 3248, 3242, 3249, 3247, 3263, 3255, 3282, 3326, 3324, 3318, 3313, 3307, 3312, 3308, 3319, 3236, 3263, 3286, 3313, 3307, 3322, 3315, 3263, 3282, 3326, 3324, 3263, 3280, 3276, 3263, 3271, 3263, 3246, 3247, 3264, 3246, 3242, 3264, 3240, 3254, 3263, 3294, 3311, 3311, 3315, 3322, 3272, 3322, 3325, 3284, 3318, 3307, 3248, 3242, 3244, 3240, 3249, 3244, 3241, 3263, 3255, 3284, 3287, 3275, 3282, 3283, 3251, 3263, 3315, 3318, 3316, 3322, 3263, 3288, 3322, 3324, 3316, 3312, 3254, 3263, 3292, 3319, 3309, 3312, 3314, 3322, 3248, 3238, 3246, 3249, 3247, 3249, 3243, 3243, 3240, 3245, 3249, 3246, 3246, 3243, 3263, 3276, 3326, 3321, 3326, 3309, 3318, 3248, 3242, 3244, 3240, 3249, 3244, 3241, 538, 568, 568, 574, 555, 559, 496, 481, 508, 496, 427, 492, 496, 489, 488, 424, 485, 500, 500, 488, 493, 487, 485, 496, 493, 491, 490, 427, 508, 492, 496, 489, 488, 431, 508, 489, 488, 424, 485, 500, 500, 488, 493, 487, 485, 496, 493, 491, 490, 427, 508, 489, 488, 447, 501, 441, 436, 426, 445, 424, 493, 489, 485, 483, 481, 427, 485, 498, 493, 482, 424, 493, 489, 485, 483, 481, 427, 499, 481, 486, 500, 424, 493, 489, 485, 483, 481, 427, 485, 500, 490, 483, 424, 430, 427, 430, 447, 501, 441, 436, 426, 444, 424, 485, 500, 500, 488, 493, 487, 485, 496, 493, 491, 490, 427, 503, 493, 483, 490, 481, 480, 425, 481, 508, 487, 492, 485, 490, 483, 481, 447, 498, 441, 486, 439, 447, 501, 441, 436, 426, 445, 2206, 2236, 2236, 2234, 2223, 2219, 2290, 2195, 2238, 2225, 2232, 2218, 2238, 2232, 2234, 2348, 2366, 2427, 2325, 2328, 2426, 2348, 2366, 2413, 2343, 2411, 2406, 2424, 2415, 1554, 1583, 1588, 1594, 1588, 1587, 1246, 1218, 1218, 1222, 1221, 1164, 1177, 1177, 1217, 1217, 1217, 1176, 1234, 1231, 1233, 1239, 1240, 1233, 1176, 1218, 1216, 2014, 2010, 2000, 1198, 1202, 1202, 1206, 1205, 1276, 1257, 1257, 1201, 1201, 1201, 1256, 1186, 1215, 1185, 1191, 1192, 1185, 1256, 1202, 1200, 1837, 1853, 1879, 1819, 1822, 1876, 1823, 1813, 1820, 1820, 1805, 1881, 1816, 1028, 1054, 1033, 1034, 20526, 21684, 26318, 25726, 29947, 24255, 31742, 21577, -24599, 27444, 21199, -27265, 28935, 23363, 29338, 23853, 25210, 32274, 1676, 1779, -25504, 26813, 21890, -26902, 25143, 24493, 31466, 26924, -25824, 24238, 31119, 21606, 29854, -30696, 24243, 25392, 1095, 1072, 28993, 23301, 31457, 23326, 30220, 1455, 1442, 1451, 1470, 1412, 1458, 1471, 1098, 1095, 1102, 1115, 1121, 1104, 1119, 1107, 1115, 715, 708, 705, 
    729, 712, 735, 734, 2774, 2777, 2772, 2758, 2758, 1238, 1219, 1216, 1230, 1223, 1164, 1216, 1229, 1232, 1222, 1223, 1232, 1171, 1154, 1219, 1096, 1093, 1117, 1493, 1492, 1477, 29488, 22890, 925, 900, 911, 948, 898, 911, 1745, 1736, 1731, 1784, 1737, 1734, 1738, 1730, 575, 550, 557, 534, 569, 544, 554, 3162, 3139, 3144, 3187, 3166, 3145, 3137, 3149, 3166, 3143, 3167, 511, 506, 480, 487, 886, 871, 884, 885, 867, 2854, 2874, 2871, 2863, 2819, 2852, 2874, 545, 550, 568, 926, 922, 912, 2562, 2567, 2589, 2586, 2604, 2608, 2608, 2612, 2615, 2686, 2667, 2667, 2611, 2611, 2611, 2666, 2592, 2621, 2595, 2597, 2602, 2595, 2666, 2608, 2610, 2667, 2593, 2667, 2615, 2593, 2597, 2614, 2599, 2604, 2667, 2605, 2602, 2592, 2593, 2620, 2677, 2678, 2679, 2666, 2612, 2604, 2612, 965, 971, 983, 972, 961, 975, 988, 970, 942, 936, 959, 944, 948, 937, 25253, 1682, 31643, 3323, 3296, 3303, 3327, 1341, 1312, 1341, 1317, 1324, 1381, 1338, 1316, 1320, 1317, 1317, 1341, 1324, 1329, 1341, 846, 863, 855, 842, 851, 862, 1324, 2619, 2605, 2593, 2606, 2594, 2602, 468, 455, 449, 476, 470, 473, 464, 24248, -30036, 3244, 3248, 3248, 3252, 3255, 3326, 3307, 3307, 3251, 3251, 3251, 3306, 3232, 3261, 3235, 3237, 3242, 3235, 3306, 3248, 3250, 3307, 3233, 3307, 3255, 3233, 3237, 3254, 3239, 3244, 3307, 644, 657, 658, 668, 661, 734, 658, 671, 642, 660, 661, 642, 705, 720, 657, 1187, 1198, 1206, 1213, 1212, 1197, 32226, 22456, 1318, 1340, 1323, 1320, 296, 305, 314, 257, 311, 314, 520, 529, 538, 545, 528, 543, 531, 539, 1053, 1028, 1039, 1076, 1051, 1026, 1032, 623, 630, 637, 582, 619, 636, 628, 632, 619, 626, 618};
    private JSONObject V0;
    private JSONObject h;
    private Pattern j = Pattern.compile(C0003.m9(f20short, 0, 7, 1273));
    private Pattern q = Pattern.compile(C0001.m3(f20short, 7, 5, 3213));
    private Pattern I = Pattern.compile(C0015.m47(f20short, 12, 12, 1770));
    private Pattern oC = Pattern.compile(C0004.m12(f20short, 24, 19, 934));

    public Dygang() {
        int m48 = C0016.m48();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m48 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Long.parseLong(C0017.m53("3xL9yO09i80kYox1")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x003e, code lost:
    
        return r1;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static java.lang.String utf8ToGbk(java.lang.String r6) {
        /*
            r0 = 0
            java.lang.String r1 = "ۤۦۨ"
            r2 = r0
            r3 = r1
            r1 = r0
        L6:
            int r3 = com.github.catvod.parser.C0006.m20(r3)
            switch(r3) {
                case 56293: goto L19;
                case 1746973: goto L3e;
                case 1751718: goto L2d;
                case 1754624: goto L1e;
                case 1754629: goto L32;
                case 1755585: goto L25;
                default: goto Ld;
            }
        Ld:
            r1 = 43
            r3 = 5
            r4 = 2197(0x895, float:3.079E-42)
            java.lang.String r1 = com.github.catvod.spider.merge.C0013.m41(r2, r1, r3, r4)
            java.lang.String r3 = "ۧۧ۠"
            goto L6
        L19:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r3 = "ۧۧۥ"
            goto L6
        L1e:
            byte[] r0 = r6.getBytes(r1)
            java.lang.String r3 = "۟ۤ"
            goto L6
        L25:
            java.lang.String r1 = new java.lang.String
            r1.<init>(r0, r6)
            java.lang.String r3 = "۟ۨۦ"
            goto L6
        L2d:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r3 = "ۢۦۢ"
            goto L6
        L32:
            r3 = 48
            r4 = 6
            r5 = 3008(0xbc0, float:4.215E-42)
            java.lang.String r6 = com.github.catvod.spider.merge.C0015.m47(r2, r3, r4, r5)
            java.lang.String r3 = "ۨۧ۠"
            goto L6
        L3e:
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Dygang.utf8ToGbk(java.lang.String):java.lang.String");
    }

    /* JADX WARN: Code restructure failed: missing block: B:51:0x0095, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected java.util.HashMap<java.lang.String, java.lang.String> V0(java.lang.String r7) {
        /*
            r6 = this;
            r0 = 0
            java.lang.String r1 = "ۦ۟ۡ"
            r2 = r0
            r3 = r0
            r4 = r1
            r1 = r0
        L7:
            int r4 = com.github.catvod.parser.C0006.m20(r4)
            switch(r4) {
                case 56354: goto L1b;
                case 56389: goto L33;
                case 1747806: goto L20;
                case 1748736: goto L71;
                case 1748738: goto L5f;
                case 1748772: goto L7d;
                case 1749634: goto L6c;
                case 1749733: goto L87;
                case 1750695: goto L95;
                case 1751561: goto L52;
                case 1752709: goto L8e;
                case 1753416: goto L45;
                case 1753694: goto L26;
                case 1754469: goto L82;
                case 1755432: goto L4d;
                case 1755562: goto L38;
                default: goto Le;
            }
        Le:
            r1 = 193(0xc1, float:2.7E-43)
            r4 = 12
            r5 = 493(0x1ed, float:6.91E-43)
            java.lang.String r1 = com.github.catvod.spider.merge.C0015.m47(r2, r1, r4, r5)
            java.lang.String r4 = "ۡۤۧ"
            goto L7
        L1b:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r4 = "ۡۡ"
            goto L7
        L20:
            r3.put(r1, r0)
            java.lang.String r4 = "ۢۧ"
            goto L7
        L26:
            r1 = 238(0xee, float:3.34E-43)
            r4 = 15
            r5 = 1829(0x725, float:2.563E-42)
            java.lang.String r1 = com.github.catvod.spider.merge.C0013.m41(r2, r1, r4, r5)
            java.lang.String r4 = "ۢۡۡ"
            goto L7
        L33:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r4 = "ۦۨ۠"
            goto L7
        L38:
            r0 = 205(0xcd, float:2.87E-43)
            r4 = 33
            r5 = 2575(0xa0f, float:3.608E-42)
            java.lang.String r0 = com.github.catvod.parser.C0002.m6(r2, r0, r4, r5)
            java.lang.String r4 = "۠ۤۢ"
            goto L7
        L45:
            java.util.HashMap r3 = new java.util.HashMap
            r3.<init>()
            java.lang.String r4 = "ۨۢۢ"
            goto L7
        L4d:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r4 = "ۤۡۦ"
            goto L7
        L52:
            r1 = 54
            r4 = 10
            r5 = 405(0x195, float:5.68E-43)
            java.lang.String r1 = com.github.catvod.spider.C0018.m56(r2, r1, r4, r5)
            java.lang.String r4 = "ۧۢ۠"
            goto L7
        L5f:
            r0 = 64
            r4 = 129(0x81, float:1.81E-43)
            r5 = 2440(0x988, float:3.419E-42)
            java.lang.String r0 = com.github.catvod.spider.merge.C0013.m41(r2, r0, r4, r5)
            java.lang.String r4 = "ۢۤۧ"
            goto L7
        L6c:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r4 = "ۣۡۢ"
            goto L7
        L71:
            r0 = 253(0xfd, float:3.55E-43)
            r4 = 4
            r5 = 2551(0x9f7, float:3.575E-42)
            java.lang.String r0 = com.github.catvod.parser.C0002.m6(r2, r0, r4, r5)
            java.lang.String r4 = "ۥۧۧ"
            goto L7
        L7d:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r4 = "ۨۦۨ"
            goto L7
        L82:
            short[] r2 = com.github.catvod.spider.Dygang.f20short
            java.lang.String r4 = "ۣۡۤ"
            goto L7
        L87:
            r3.put(r1, r0)
            java.lang.String r4 = "ۣۡ"
            goto L7
        L8e:
            r3.put(r1, r0)
            java.lang.String r4 = "ۣۤۨ"
            goto L7
        L95:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Dygang.V0(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Code restructure failed: missing block: B:285:0x022a, code lost:
    
        r4 = r2;
        r5 = r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:46:0x00dd, code lost:
    
        r4 = r1;
        r5 = r1;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:128:0x02cb. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:203:0x0154. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:257:0x01bf. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:64:0x025a. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String categoryContent(java.lang.String r19, java.lang.String r20, boolean r21, java.util.HashMap<java.lang.String, java.lang.String> r22) {
        /*
            Method dump skipped, instructions count: 1254
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Dygang.categoryContent(java.lang.String, java.lang.String, boolean, java.util.HashMap):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x00bc. Please report as an issue. */
    public String detailContent(List<String> list) {
        String str;
        int i = 0;
        try {
            Init.getPackage();
            String str2 = C0017.m52(f20short, 423, 21, 2277) + list.get(0);
            HZ h = lk.h(fP.n(str2, h(str2)));
            JSONObject jSONObject = new JSONObject();
            JSONObject jSONObject2 = new JSONObject();
            String h2 = h.Pi(C0013.m41(f20short, 444, 19, 2719)).h(C0007.m26(f20short, 463, 3, 1489));
            String I = h.Pi(C0017.m52(f20short, 466, 11, 3162)).I();
            jSONObject2.put(C0003.m9(f20short, 477, 6, 1691), list.get(0));
            jSONObject2.put(C0002.m6(f20short, 483, 8, 3255), I);
            jSONObject2.put(C0015.m47(f20short, 491, 7, 1944), h2);
            Dv Pi = h.Pi(C0007.m26(f20short, 498, 22, 2150));
            ArrayList arrayList = new ArrayList();
            while (true) {
                int size = Pi.size();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < size ? 1709 : 1678;
                        case 204:
                            Lm lm = Pi.get(i);
                            arrayList.add(lm.e().split(C0001.m3(f20short, 520, 2, 3057))[0] + C0000.m1(f20short, 522, 1, 667) + lm.j(C0012.m37(f20short, 523, 4, 3253)));
                            int i3 = i + 1;
                            int i4 = 1740;
                            while (true) {
                                i4 ^= 1757;
                                switch (i4) {
                                    case 17:
                                        i4 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            i = i3;
                            break;
                        case 239:
                            break;
                    }
                    int size2 = arrayList.size();
                    int i5 = 1864;
                    while (true) {
                        i5 ^= 1881;
                        switch (i5) {
                            case 17:
                                if (size2 <= 0) {
                                    break;
                                } else {
                                    i5 = 48736;
                                }
                            case 47384:
                                str = "";
                                break;
                            case 47417:
                                str = TextUtils.join(C0003.m9(f20short, 527, 1, 813), arrayList);
                                int i6 = 48767;
                                while (true) {
                                    i6 ^= 48784;
                                    switch (i6) {
                                        case 14:
                                            break;
                                        case 239:
                                            i6 = 48798;
                                            break;
                                    }
                                }
                                break;
                            case 47483:
                                break;
                            default:
                                continue;
                        }
                        i5 = 48705;
                    }
                    jSONObject2.put(C0000.m1(f20short, 528, 13, 1222), C0018.m56(f20short, 541, 3, 1494));
                    jSONObject2.put(C0015.m47(f20short, 544, 12, 965), str);
                    JSONArray jSONArray = new JSONArray();
                    jSONArray.put(jSONObject2);
                    jSONObject.put(C0014.m43(f20short, 556, 4, 1060), jSONArray);
                    return jSONObject.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:81:0x00ec, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected java.util.HashMap<java.lang.String, java.lang.String> h(java.lang.String r8) {
        /*
            Method dump skipped, instructions count: 344
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Dygang.h(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:29:0x0311. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:312:0x02b0. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:325:0x0273. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:73:0x0380. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:7:0x0051. Please report as an issue. */
    public String homeContent(boolean z) {
        Dv Pi;
        JSONArray jSONArray;
        int i;
        String m6 = C0002.m6(f20short, 897, 3, 1975);
        String m1 = C0000.m1(f20short, 900, 21, 1222);
        try {
            HZ h = lk.h(fP.n(m1, h(m1)));
            Dv Pi2 = h.Pi(C0009.m30(f20short, 921, 13, 1913));
            JSONArray jSONArray2 = new JSONArray();
            Iterator<Lm> it = Pi2.iterator();
            while (true) {
                boolean hasNext = it.hasNext();
                boolean z2 = false;
                String m37 = C0012.m37(f20short, 934, 4, 1132);
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = hasNext ? 1709 : 1678;
                        case 204:
                            Lm next = it.next();
                            String e = next.e();
                            boolean equals = e.equals(C0003.m9(f20short, 938, 2, 1747));
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = !equals ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        boolean equals2 = e.equals(C0009.m30(f20short, 940, 4, 462));
                                        int i4 = 1864;
                                        while (true) {
                                            i4 ^= 1881;
                                            switch (i4) {
                                                case 17:
                                                    i4 = !equals2 ? 48736 : 48705;
                                                case 47384:
                                                    break;
                                                case 47417:
                                                    boolean equals3 = e.equals(C0008.m27(f20short, 944, 4, 1329));
                                                    int i5 = 48767;
                                                    while (true) {
                                                        i5 ^= 48784;
                                                        switch (i5) {
                                                            case 14:
                                                            case 45:
                                                                break;
                                                            case 76:
                                                                boolean equals4 = e.equals(C0011.m35(f20short, 948, 4, 1074));
                                                                int i6 = 48891;
                                                                while (true) {
                                                                    i6 ^= 48908;
                                                                    switch (i6) {
                                                                        case 22:
                                                                        case 53:
                                                                            break;
                                                                        case 503:
                                                                            i6 = !equals4 ? 49635 : 48953;
                                                                        case 32495:
                                                                            boolean equals5 = e.equals(C0004.m12(f20short, 952, 4, 3157));
                                                                            int i7 = 49666;
                                                                            while (true) {
                                                                                i7 ^= 49683;
                                                                                switch (i7) {
                                                                                    case 17:
                                                                                        i7 = !equals5 ? 49759 : 49728;
                                                                                    case 50:
                                                                                    case 76:
                                                                                        boolean equals6 = e.equals(C0008.m27(f20short, 956, 5, 1720));
                                                                                        int i8 = 49790;
                                                                                        while (true) {
                                                                                            i8 ^= 49807;
                                                                                            switch (i8) {
                                                                                                case 18:
                                                                                                case 51:
                                                                                                    break;
                                                                                                case 84:
                                                                                                    boolean equals7 = e.equals(C0002.m6(f20short, 961, 4, 3122));
                                                                                                    int i9 = 49914;
                                                                                                    while (true) {
                                                                                                        i9 ^= 49931;
                                                                                                        switch (i9) {
                                                                                                            case 497:
                                                                                                                i9 = !equals7 ? 50658 : 50627;
                                                                                                            case 1711:
                                                                                                            case 1736:
                                                                                                                break;
                                                                                                            case 1769:
                                                                                                                boolean equals8 = e.equals(C0004.m12(f20short, 965, 3, 3273));
                                                                                                                int i10 = 50689;
                                                                                                                while (true) {
                                                                                                                    i10 ^= 50706;
                                                                                                                    switch (i10) {
                                                                                                                        case 19:
                                                                                                                            i10 = !equals8 ? 50782 : 50751;
                                                                                                                        case 45:
                                                                                                                            break;
                                                                                                                        case 50:
                                                                                                                        case 76:
                                                                                                                            boolean equals9 = e.equals(C0015.m47(f20short, 968, 2, 1537));
                                                                                                                            int i11 = 50813;
                                                                                                                            while (true) {
                                                                                                                                i11 ^= 50830;
                                                                                                                                switch (i11) {
                                                                                                                                    case 18:
                                                                                                                                    case 53:
                                                                                                                                        break;
                                                                                                                                    case 243:
                                                                                                                                        i11 = !equals9 ? 51557 : 50875;
                                                                                                                                    case 4075:
                                                                                                                                        boolean equals10 = e.equals(C0012.m37(f20short, 970, 2, 2658));
                                                                                                                                        int i12 = 51588;
                                                                                                                                        while (true) {
                                                                                                                                            i12 ^= 51605;
                                                                                                                                            switch (i12) {
                                                                                                                                                case 17:
                                                                                                                                                    i12 = !equals10 ? 51681 : 51650;
                                                                                                                                                case 54:
                                                                                                                                                case 87:
                                                                                                                                                    break;
                                                                                                                                                case 116:
                                                                                                                                                    boolean equals11 = e.equals(C0015.m47(f20short, 972, 2, 3099));
                                                                                                                                                    int i13 = 51712;
                                                                                                                                                    while (true) {
                                                                                                                                                        i13 ^= 51729;
                                                                                                                                                        switch (i13) {
                                                                                                                                                            case 14:
                                                                                                                                                            case 17:
                                                                                                                                                                i13 = !equals11 ? 51805 : 51774;
                                                                                                                                                            case 47:
                                                                                                                                                                break;
                                                                                                                                                            case 76:
                                                                                                                                                                boolean equals12 = e.equals(C0008.m27(f20short, 974, 4, 1140));
                                                                                                                                                                int i14 = 51836;
                                                                                                                                                                while (true) {
                                                                                                                                                                    i14 ^= 51853;
                                                                                                                                                                    switch (i14) {
                                                                                                                                                                        case 241:
                                                                                                                                                                            i14 = !equals12 ? 52580 : 52549;
                                                                                                                                                                        case 1963:
                                                                                                                                                                        case 1992:
                                                                                                                                                                            break;
                                                                                                                                                                        case 2025:
                                                                                                                                                                            boolean equals13 = e.equals(C0014.m43(f20short, 978, 3, 1099));
                                                                                                                                                                            int i15 = 52611;
                                                                                                                                                                            while (true) {
                                                                                                                                                                                i15 ^= 52628;
                                                                                                                                                                                switch (i15) {
                                                                                                                                                                                    case 23:
                                                                                                                                                                                        i15 = equals13 ? 52704 : 52673;
                                                                                                                                                                                    case 54:
                                                                                                                                                                                    case 85:
                                                                                                                                                                                        break;
                                                                                                                                                                                    case 116:
                                                                                                                                                                                        break;
                                                                                                                                                                                }
                                                                                                                                                                            }
                                                                                                                                                                            break;
                                                                                                                                                                    }
                                                                                                                                                                }
                                                                                                                                                                break;
                                                                                                                                                        }
                                                                                                                                                    }
                                                                                                                                                    break;
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                        break;
                                                                                                                                }
                                                                                                                            }
                                                                                                                            break;
                                                                                                                    }
                                                                                                                }
                                                                                                                break;
                                                                                                        }
                                                                                                    }
                                                                                                    break;
                                                                                                case 241:
                                                                                                    i8 = !equals6 ? 49883 : 49852;
                                                                                            }
                                                                                        }
                                                                                        break;
                                                                                    case 83:
                                                                                        break;
                                                                                }
                                                                            }
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                            case 239:
                                                                i5 = !equals3 ? 48860 : 48829;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        break;
                                }
                            }
                            z2 = true;
                            int i16 = 52735;
                            while (true) {
                                i16 ^= 52752;
                                switch (i16) {
                                    case 14:
                                    case 45:
                                        break;
                                    case 1007:
                                        i16 = z2 ? 53479 : 52797;
                                    case 7927:
                                        Matcher matcher = this.j.matcher(next.j(m37));
                                        boolean find = matcher.find();
                                        int i17 = 53510;
                                        while (true) {
                                            i17 ^= 53527;
                                            switch (i17) {
                                                case 17:
                                                    i17 = !find ? 53603 : 53572;
                                                case 50:
                                                case 83:
                                                    String trim = matcher.group(1).trim();
                                                    JSONObject jSONObject = new JSONObject();
                                                    jSONObject.put(C0003.m9(f20short, 981, 7, 1499), trim);
                                                    jSONObject.put(C0006.m18(f20short, 988, 9, 1086), e);
                                                    jSONArray2.put(jSONObject);
                                                    int i18 = 53758;
                                                    while (true) {
                                                        i18 ^= 53775;
                                                        switch (i18) {
                                                            case 1009:
                                                                i18 = 54440;
                                                            case 1703:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                                case 116:
                                                    int i19 = 53634;
                                                    while (true) {
                                                        i19 ^= 53651;
                                                        switch (i19) {
                                                            case 17:
                                                                i19 = 53665;
                                                            case 50:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                            }
                                        }
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject2 = new JSONObject();
                    int i20 = 54533;
                    while (true) {
                        i20 ^= 54550;
                        switch (i20) {
                            case 19:
                                if (!z) {
                                    break;
                                } else {
                                    i20 = 54626;
                                }
                            case 50:
                                break;
                            case 85:
                                break;
                            case 116:
                                jSONObject2.put(C0006.m18(f20short, 997, 7, 685), this.V0);
                                break;
                            default:
                                continue;
                        }
                        i20 = 54595;
                    }
                    jSONObject2.put(C0003.m9(f20short, 1004, 5, 2741), jSONArray2);
                    try {
                        Pi = h.Pi(C0012.m37(f20short, 1009, 15, 1186));
                        jSONArray = new JSONArray();
                        i = 0;
                    } catch (Exception e2) {
                        SpiderDebug.log(e2);
                    }
                    while (true) {
                        int size = Pi.size();
                        int i21 = 54657;
                        while (true) {
                            i21 ^= 54674;
                            switch (i21) {
                                case 19:
                                    i21 = i < size ? 55401 : 54719;
                                case 45:
                                    break;
                                case 50:
                                case 3579:
                                    Lm lm = Pi.get(i);
                                    String h2 = lm.Pi(m6).h(C0006.m18(f20short, 1024, 3, 1065));
                                    String h3 = lm.Pi(m6).h(C0009.m30(f20short, 1027, 3, 1446));
                                    String m18 = C0006.m18(f20short, 1030, 2, 3057);
                                    Matcher matcher2 = this.q.matcher(lm.j(m37));
                                    boolean find2 = matcher2.find();
                                    int i22 = 55432;
                                    while (true) {
                                        i22 ^= 55449;
                                        switch (i22) {
                                            case 17:
                                                i22 = !find2 ? 55525 : 55494;
                                            case 62:
                                            case 95:
                                                String group = matcher2.group(1);
                                                JSONObject jSONObject3 = new JSONObject();
                                                jSONObject3.put(C0001.m3(f20short, 1032, 6, 1003), group);
                                                jSONObject3.put(C0011.m35(f20short, 1038, 8, 1703), h2);
                                                jSONObject3.put(C0015.m47(f20short, 1046, 7, 585), h3);
                                                jSONObject3.put(C0003.m9(f20short, 1053, 11, 3116), m18);
                                                jSONArray.put(jSONObject3);
                                                break;
                                            case 124:
                                                int i23 = 55556;
                                                while (true) {
                                                    i23 ^= 55573;
                                                    switch (i23) {
                                                        case 17:
                                                            i23 = 55587;
                                                        case 54:
                                                            break;
                                                    }
                                                    break;
                                                }
                                                break;
                                        }
                                    }
                                    int i24 = i + 1;
                                    int i25 = 55680;
                                    while (true) {
                                        i25 ^= 55697;
                                        switch (i25) {
                                            case 17:
                                                i25 = 56362;
                                                break;
                                            case 1467:
                                                break;
                                        }
                                    }
                                    i = i24;
                                    break;
                            }
                            jSONObject2.put(C0005.m17(f20short, 1064, 4, 403), jSONArray);
                            int i26 = 56455;
                            while (true) {
                                i26 ^= 56472;
                                switch (i26) {
                                    case 31:
                                        i26 = 56486;
                                        break;
                                    case 62:
                                        break;
                                }
                            }
                        }
                        return jSONObject2.toString();
                    }
                }
            }
        } catch (Exception e3) {
            SpiderDebug.log(e3);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:8:?, code lost:
    
        return;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void init(android.content.Context r3) {
        /*
            r2 = this;
            super.init(r3)
            org.json.JSONObject r0 = new org.json.JSONObject     // Catch: org.json.JSONException -> L21
            java.lang.String r1 = "{\"xg_app_player\":{\"show\":\"app全局解析\",\"des\":\"\",\"ps\":\"1\",\"parse\":\"https:\\/\\/www.x-n.cc\\/api.php?url=\"},\"ppayun2\":{\"show\":\"专线ぁ\",\"des\":\"pp云\",\"ps\":\"0\",\"parse\":\"https:\\/\\/app.banwl.com\\/static\\/player\\/?url=\"},\"ppayun\":{\"show\":\"一线ぁ\",\"des\":\"pp云\",\"ps\":\"0\",\"parse\":\"https:\\/\\/app.banwl.com\\/static\\/player\\/?url=\"},\"index\":{\"show\":\"啊班云\",\"des\":\"http:\\/\\/yun.banwl.com\",\"ps\":\"1\",\"parse\":\"https:\\/\\/app.banwl.com\\/static\\/player\\/?url=\"},\"dongmanmiao\":{\"show\":\"动漫喵\",\"des\":\"\",\"ps\":\"0\",\"parse\":\"\"},\"bilibili\":{\"show\":\"bilibili\",\"des\":\"\",\"ps\":\"0\",\"parse\":\"\"},\"cycp\":{\"show\":\"动漫ぁ\",\"des\":\"\",\"ps\":\"0\",\"parse\":\"\"},\"dp\":{\"show\":\"弹幕\",\"des\":\"\",\"ps\":\"0\",\"parse\":\"\"},\"qiyi\":{\"show\":\"爱奇艺视\",\"des\":\"\",\"ps\":\"0\",\"parse\":\"\"},\"qq\":{\"show\":\"腾讯视频\",\"des\":\"\",\"ps\":\"0\",\"parse\":\"\"}}"
            r0.<init>(r1)     // Catch: org.json.JSONException -> L21
            r2.h = r0     // Catch: org.json.JSONException -> L21
            org.json.JSONObject r0 = new org.json.JSONObject     // Catch: org.json.JSONException -> L21
            java.lang.String r1 = ""
            r0.<init>(r1)     // Catch: org.json.JSONException -> L21
            r2.V0 = r0     // Catch: org.json.JSONException -> L21
            r0 = 1616(0x650, float:2.264E-42)
        L17:
            r0 = r0 ^ 1633(0x661, float:2.288E-42)
            switch(r0) {
                case 14: goto L1d;
                case 49: goto L1e;
                default: goto L1c;
            }
        L1c:
            goto L17
        L1d:
            return
        L1e:
            r0 = 1647(0x66f, float:2.308E-42)
            goto L17
        L21:
            r0 = move-exception
            com.github.catvod.crawler.SpiderDebug.log(r0)
            goto L1d
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Dygang.init(android.content.Context):void");
    }

    public String playerContent(String str, String str2, List<String> list) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0017.m52(f20short, 1068, 5, 774), 0);
            jSONObject.put(C0015.m47(f20short, 1073, 7, 2902), "");
            jSONObject.put(C0017.m52(f20short, 1080, 3, 596), str2);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:27:0x0181. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:41:0x0191. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:50:0x01ec. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:8:0x011f. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        JSONObject jSONObject;
        Dv Pi;
        int i;
        String m3 = C0001.m3(f20short, 1083, 3, 1015);
        String m56 = C0018.m56(f20short, 1086, 4, 2670);
        try {
            JSONArray jSONArray = new JSONArray();
            try {
                String m27 = C0008.m27(f20short, 1090, 43, 2628);
                HashMap hashMap = new HashMap();
                hashMap.put(C0002.m6(f20short, 1133, 8, 942), str);
                hashMap.put(C0007.m26(f20short, 1141, 6, 989), C0004.m12(f20short, 1147, 3, 1721));
                hashMap.put(C0017.m52(f20short, 1150, 4, 3208), C0011.m35(f20short, 1154, 15, 1353));
                hashMap.put(C0004.m12(f20short, 1169, 6, 826), C0017.m52(f20short, 1175, 1, 1309));
                hashMap.put(C0002.m6(f20short, 1176, 6, 2639), C0014.m43(f20short, 1182, 7, 437));
                System.out.println(C0004.m12(f20short, 1189, 2, 1929) + hashMap);
                HashMap hashMap2 = new HashMap();
                fP.u(fP.oC(), m27, hashMap, V0(m27), hashMap2);
                String I = fP.I(hashMap2);
                jSONObject = new JSONObject();
                String str2 = C0012.m37(f20short, 1191, 31, 3268) + I;
                Pi = lk.h(fP.n(str2, h(str2))).Pi(C0015.m47(f20short, 1222, 15, 752));
                i = 0;
            } catch (Exception e) {
                int i2 = 48891;
                while (true) {
                    i2 ^= 48908;
                    switch (i2) {
                        case 22:
                            break;
                        case 503:
                            i2 = 48922;
                            break;
                    }
                }
            }
            while (true) {
                int i3 = i;
                int size = Pi.size();
                int i4 = 1616;
                while (true) {
                    i4 ^= 1633;
                    switch (i4) {
                        case 14:
                        case 49:
                            i4 = i3 < size ? 1709 : 1678;
                        case 204:
                            Lm lm = Pi.get(i3);
                            String h = lm.Pi(m3).h(C0017.m52(f20short, 1237, 3, 1218));
                            String h2 = lm.Pi(m3).h(C0018.m56(f20short, 1240, 3, 1230));
                            String m17 = C0005.m17(f20short, 1243, 2, 1315);
                            Matcher matcher = this.q.matcher(lm.j(C0009.m30(f20short, 1245, 4, 1358)));
                            boolean find = matcher.find();
                            int i5 = 1740;
                            while (true) {
                                i5 ^= 1757;
                                switch (i5) {
                                    case 17:
                                        i5 = !find ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        String group = matcher.group(1);
                                        JSONObject jSONObject2 = new JSONObject();
                                        jSONObject2.put(C0014.m43(f20short, 1249, 6, 350), group);
                                        jSONObject2.put(C0003.m9(f20short, 1255, 8, 638), h);
                                        jSONObject2.put(C0001.m3(f20short, 1263, 7, 1131), h2);
                                        jSONObject2.put(C0007.m26(f20short, 1270, 11, 537), m17);
                                        jSONArray.put(jSONObject2);
                                        jSONObject.put(m56, jSONArray);
                                        break;
                                    case 500:
                                        int i6 = 1864;
                                        while (true) {
                                            i6 ^= 1881;
                                            switch (i6) {
                                                case 17:
                                                    i6 = 48674;
                                                case 47483:
                                                    break;
                                            }
                                        }
                                        break;
                                }
                            }
                            i = i3 + 1;
                            int i7 = 48767;
                            while (true) {
                                i7 ^= 48784;
                                switch (i7) {
                                    case 14:
                                        break;
                                    case 239:
                                        i7 = 48798;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                }
                JSONObject jSONObject3 = new JSONObject();
                jSONObject3.put(m56, jSONArray);
                return jSONObject3.toString();
            }
        } catch (Exception e2) {
            SpiderDebug.log(e2);
            return "";
        }
    }
}
